﻿using System;
using System.Collections.Generic;

#nullable disable

namespace Model.Models
{
    public partial class Order
    {
        public Order()
        {
            Bills = new HashSet<Bill>();
            Flittings = new HashSet<Flitting>();
            Missions = new HashSet<Mission>();
            Orderdetails = new HashSet<Orderdetail>();
            Receipts = new HashSet<Receipt>();
        }

        public string Oid { get; set; }
        public string Cid { get; set; }
        public int? Sid { get; set; }
        public DateTime? Createdate { get; set; }
        public DateTime? Comitedate { get; set; }
        public int? Otype { get; set; }
        public string Address { get; set; }
        public string Receiveman { get; set; }
        public string Receivetel { get; set; }
        public string Receivepost { get; set; }
        public int? Bill { get; set; }
        public string Payman { get; set; }
        public string Payaddress { get; set; }
        public string Paytel { get; set; }
        public string Paypost { get; set; }
        public int? Status { get; set; }
        public string Oderid { get; set; }
        public string Managereason { get; set; }
        public DateTime? Managedate { get; set; }
        public int? Manager { get; set; }
        public string Remark { get; set; }

        public virtual Customer CidNavigation { get; set; }
        public virtual Employee ManagerNavigation { get; set; }
        public virtual Datame OtypeNavigation { get; set; }
        public virtual Station SidNavigation { get; set; }
        public virtual Datame StatusNavigation { get; set; }
        public virtual ICollection<Bill> Bills { get; set; }
        public virtual ICollection<Flitting> Flittings { get; set; }
        public virtual ICollection<Mission> Missions { get; set; }
        public virtual ICollection<Orderdetail> Orderdetails { get; set; }
        public virtual ICollection<Receipt> Receipts { get; set; }
    }
}
